package toy.keli.edic

import android.content.Context
import android.content.res.Configuration
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import toy.keli.edic.data.UserStatus
import toy.keli.edic.data.config.MenuConf
import toy.keli.edic.ui.level.LevelViewModel
import toy.keli.edic.ui.main.AboutScreen
import toy.keli.edic.ui.ui.theme.EnglishWhizTheme
import toy.keli.edic.ui.MTheme
import toy.keli.edic.ui.MainContent
import toy.keli.edic.ui.RootContent
import toy.keli.edic.ui.bindkeyBoradEvent
import toy.keli.edic.ui.theme.EdicTheme
import toy.keli.edic.util.ActivityRun
import toy.keli.edic.util.ScreenUtil
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class DebugActivity : AppCompatActivity() {
    private val levelModel: LevelViewModel by viewModels()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        ActivityRun.setConText(this)
        if(!UserStatus.get{
                it.getBoolean("showSystemTitle",false)
        }){
            ScreenUtil.setFullScreen(this)
        }
        enableEdgeToEdge()
        levelModel.getAllLevel()
        setContent {
            MTheme  {
                Surface(color = MaterialTheme.colorScheme.background) {
                    AboutScreen()
                }
            }
        }
    }
}
